<?php
//未登录显示的head
if(!$cfg_ml->IsLogin()) {
?>
<div id="header">
	<div id="siteNav">
    <div class="innerWrap">
      <div id="loginInfo">
      <script type="text/javascript">
           	var now=(new Date()).getHours();
			if(now>0&&now<=6){
				document.write("午夜好，");
			}else if(now>6&&now<=11){
				document.write("早上好，");
			}else if(now>11&&now<=14){
				document.write("中午好，");
			}else if(now>14&&now<=18){
				document.write("下午好，");
			}else{
				document.write("晚上好，");
			}
			</script>
       游客
       </div>
      <ul id="quickMenu">
        <li><a title="注册" href="http://www.hnjyxh.com/member/index_do.php?fmdo=user&dopost=regnew">注册</a> </li>
        <li><a title="登录" href="../member/">登录</a> </li>
      </ul>
    </div>
  </div>
</div>
<?php
}
//登录后显示的head
else {
?>
<div id="header">
  <div id="siteNav">
    <div class="innerWrap">
      <div id="loginInfo">
            <script type="text/javascript">
				var now=(new Date()).getHours();
				if(now>0&&now<=6){
					document.write("午夜好，");
				}else if(now>6&&now<=11){
					document.write("早上好，");
				}else if(now>11&&now<=14){
					document.write("中午好，");
				}else if(now>14&&now<=18){
					document.write("下午好，");
				}else{
					document.write("晚上好，");
				}
			</script>
       <a href="#" class="userName"><?php echo $cfg_ml->M_UserName?></a> <a href="../member/index_do.php?fmdo=login&dopost=exit#">[退出]</a> 
       
       </div>
     
   </div>
  </div>
</div>
<?php
}
?>
